package com.whmskj.xjlhsc.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.whmskj.xjlhsc.controller.vo.Result;
import com.whmskj.xjlhsc.service.AcRealtimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Sakura
 * @Date: 2025/8/13 10:10
 * @Version: v1.0.0
 * @Description: TODO
 * 实时环境检测 统计最新的各个工序的空调温度以及湿度
 **/
@RestController
@RequestMapping("/api")
@SaIgnore
public class AcRealtimeController {
    @Autowired
    private AcRealtimeService acRealtimeService;

    /**
     * 获取最新的各个工序的空调温度以及湿度
     *
     * @return
     */
    @GetMapping("/latest_ac_data")
    public Result getLatestAcData(String process) {
        return  Result.success(acRealtimeService.getLatestAcData(process));
    }




}
